package com.itheima.mm.service.impl;

import com.itheima.mm.dao.DictDao;
import com.itheima.mm.pojo.Dict;
import com.itheima.mm.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DictServiceImpl implements DictService {
    @Autowired
    private DictDao dictDao;

    @Override
    public List<Dict> findListByType(Integer dataType) {
        List<Dict> listByType = dictDao.findListByType(dataType);
        return listByType;
    }
}
